package svnpackage;

public class ClassA {
    
    private int atributo1;
    private String atributo2;
    
    public ClassA() {
        super();
    }

    public void setAtributo1(int atributo1) {
        this.atributo1 = atributo1;
    }

    public int getAtributo1() {
        return atributo1;
    }

    public void setAtributo2(String atributo2) {
        this.atributo2 = atributo2;
    }

    public String getAtributo2() {
        return atributo2;
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (!(object instanceof ClassA)) {
            return false;
        }
        final ClassA other = (ClassA) object;
        if (atributo1 != other.atributo1) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        final int PRIME = 37;
        int result = 1;
        result = PRIME * result + atributo1;
        return result;
    }
    
    public String toString(){
        
        return "Atributo1: "+ atributo1 + " Atributo2: " + atributo2;
    }
}
